﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RouletteGame
{
    public class BetStub : IBet
    {
        public string PlayerName { get; set; }
        public uint Amount { get; set; }
        public uint Field { get; set; }

        public BetStub(string name, uint amount, uint field)
        {
            PlayerName = name;
            Amount = amount;
            Field = field;
        }

        public uint WonAmount(Field field)
        {
            return field.Number == Field ? Amount : 0;
        }
    }
}
